node '%(SHORTHOSTNAME)s' {

  class cls_%(SHORTHOSTNAME)s_network {
    setupNetwork {network:
      hostname => "%(FQDN)s",
    }
    
    setupDNS {dns:
      dns=>["%(DNS)s"],
      searchdomain=>["%(DOMAINNAME)s"],
    }
    
    setupEth {eth0:
      device=>"eth0",
      bootproto=>"static",
      netmask=>"%(PRIVATENETMASK)s",
      ipaddr=>"%(PRIVATEIP)s",
      gateway=>"%(GATEWAY)s",
    }
  }
  
  include cls_%(SHORTHOSTNAME)s_network
  
  at3_security { def_%(SHORTHOSTNAME)s_security:
    ethgreen=>"eth0",
    domasq=>false,
    require=>Class["cls_%(SHORTHOSTNAME)s_network"],
  }

  at3_ldapserver{ def_%(SHORTHOSTNAME)s_ldapserver:
    ldapsuffix=>"%(LDAPSUFFIX)s",
    ldaprootpw=>"%(LDAPROOTPW)s",
    require=>At3_security["def_%(SHORTHOSTNAME)s_security"],
  }
  
  at3_ganglia_daemon{ def_%(SHORTHOSTNAME)s_ganglia_daemon:
    gangliasrvaddr=>"%(GANGLIASRVADDR)s",
    require=>At3_security["def_%(SHORTHOSTNAME)s_security"],
  }

  
}

